Date = ADDCOLUMNS(CALENDAR(DATE(2001,01,01), DATE(2050,12,31)), "Year", YEAR([Date]), "Month", MONTH([Date]), "Day", DAY([Date]), "Month Name", FORMAT([Date], "MM-MMMM" ), "Weekday",WEEKDAY([Date], 1)&FORMAT([Date], "-dddd"), "Quarter", "Q"&FORMAT([Date], "Q"))

Net = SUMX('GL Account Transactions', IF('GL Account Transactions'[Typical Balance]= "Debit", 'GL Account Transactions'[Debit Amount] - 'GL Account Transactions'[Credit Amount], 'GL Account Transactions'[Credit Amount] - 'GL Account Transactions'[Debit Amount]))

T Account Net = SUMX('GL Account Transactions', 'GL Account Transactions'[Debit Amount] - 'GL Account Transactions'[Credit Amount])

Balance = SUMX('GL Account Transactions', 'GL Account Transactions'[Debit Amount]-'GL Account Transactions'[Credit Amount])

Revenue = SUMX('GL Account Transactions', IF('GL Account Transactions'[Typical Balance] = "Credit", [Net], 0))

Expenses = SUMX('GL Account Transactions', IF('GL Account Transactions'[Typical Balance] = "Debit", [Net], 0))

Net Profit = SUMX('GL Account Transactions', 'GL Account Transactions'[Credit Amount] - 'GL Account Transactions'[Debit Amount])

Period Amount = SUMX('GL Summary with Budget', 'GL Summary with Budget'[Debit] - 'GL Summary with Budget'[Credit])

Budget Variance = SUMX('GL Summary with Budget', [Period Amount] - 'GL Summary with Budget'[Budget Amount])

